Optimal. Leaf size=1417 \[ \frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}+\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}-\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {PolyLog}\left (2,\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}+\frac {4 b x^{-2 n} (e x)^{3 n} \text {PolyLog}\left (2,\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}+\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {PolyLog}\left (2,\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}-\frac {4 b x^{-2 n} (e x)^{3 n} \text {PolyLog}\left (2,\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}-\frac {2 i b^3 x^{-3 n} (e x)^{3 n} \text {PolyLog}\left (3,\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^3 e n}+\frac {4 i b x^{-3 n} (e x)^{3 n} \text {PolyLog}\left (3,\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}+\frac {2 i b^3 x^{-3 n} (e x)^{3 n} \text {PolyLog}\left (3,\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^3 e n}-\frac {4 i b x^{-3 n} (e x)^{3 n} \text {PolyLog}\left (3,\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.69, antiderivative size = 1417, normalized size of antiderivative = 1.00, number
of steps used = 32, number of rules used = 13, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.542, Rules
used = {4294, 4290, 4276, 3405, 3404, 2296, 2221, 2611, 2320, 6724, 4617, 2317, 2438}
\begin {gather*} -\frac {2 i b^2 (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (d x^n+c\right )}}{i b-\sqrt {a^2-b^2}}\right ) x^{-3 n}}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 i b^2 (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (d x^n+c\right )}}{i b+\sqrt {a^2-b^2}}\right ) x^{-3 n}}{a^2 \left (a^2-b^2\right ) d^3 e n}+\frac {4 i b (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{-3 n}}{a^2 \sqrt {b^2-a^2} d^3 e n}-\frac {2 i b^3 (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{-3 n}}{a^2 \left (b^2-a^2\right )^{3/2} d^3 e n}-\frac {4 i b (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{-3 n}}{a^2 \sqrt {b^2-a^2} d^3 e n}+\frac {2 i b^3 (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{-3 n}}{a^2 \left (b^2-a^2\right )^{3/2} d^3 e n}+\frac {2 b^2 (e x)^{3 n} \log \left (\frac {e^{i \left (d x^n+c\right )} a}{i b-\sqrt {a^2-b^2}}+1\right ) x^{-2 n}}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 (e x)^{3 n} \log \left (\frac {e^{i \left (d x^n+c\right )} a}{i b+\sqrt {a^2-b^2}}+1\right ) x^{-2 n}}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {4 b (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{-2 n}}{a^2 \sqrt {b^2-a^2} d^2 e n}-\frac {2 b^3 (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{-2 n}}{a^2 \left (b^2-a^2\right )^{3/2} d^2 e n}-\frac {4 b (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{-2 n}}{a^2 \sqrt {b^2-a^2} d^2 e n}+\frac {2 b^3 (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{-2 n}}{a^2 \left (b^2-a^2\right )^{3/2} d^2 e n}-\frac {i b^2 (e x)^{3 n} x^{-n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 i b (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{-n}}{a^2 \sqrt {b^2-a^2} d e n}-\frac {i b^3 (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{-n}}{a^2 \left (b^2-a^2\right )^{3/2} d e n}-\frac {2 i b (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{-n}}{a^2 \sqrt {b^2-a^2} d e n}+\frac {i b^3 (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{-n}}{a^2 \left (b^2-a^2\right )^{3/2} d e n}-\frac {b^2 (e x)^{3 n} \cos \left (d x^n+c\right ) x^{-n}}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (d x^n+c\right )\right )}+\frac {(e x)^{3 n}}{3 a^2 e n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2296
Rule 2317
Rule 2320
Rule 2438
Rule 2611
Rule 3404
Rule 3405
Rule 4276
Rule 4290
Rule 4294
Rule 4617
Rule 6724
Rubi steps
\begin {align*} \int \frac {(e x)^{-1+3 n}}{\left (a+b \csc \left (c+d x^n\right )\right )^2} \, dx &=\frac {\left (x^{-3 n} (e x)^{3 n}\right ) \int \frac {x^{-1+3 n}}{\left (a+b \csc \left (c+d x^n\right )\right )^2} \, dx}{e}\\ &=\frac {\left (x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x^2}{(a+b \csc (c+d x))^2} \, dx,x,x^n\right )}{e n}\\ &=\frac {\left (x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \left (\frac {x^2}{a^2}+\frac {b^2 x^2}{a^2 (b+a \sin (c+d x))^2}-\frac {2 b x^2}{a^2 (b+a \sin (c+d x))}\right ) \, dx,x,x^n\right )}{e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {\left (2 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x^2}{b+a \sin (c+d x)} \, dx,x,x^n\right )}{a^2 e n}+\frac {\left (b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x^2}{(b+a \sin (c+d x))^2} \, dx,x,x^n\right )}{a^2 e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}-\frac {\left (4 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{i a+2 b e^{i (c+d x)}-i a e^{2 i (c+d x)}} \, dx,x,x^n\right )}{a^2 e n}-\frac {\left (b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x^2}{b+a \sin (c+d x)} \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) e n}+\frac {\left (2 b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x \cos (c+d x)}{b+a \sin (c+d x)} \, dx,x,x^n\right )}{a \left (a^2-b^2\right ) d e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}-\frac {\left (2 b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{i a+2 b e^{i (c+d x)}-i a e^{2 i (c+d x)}} \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) e n}+\frac {\left (4 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b-2 \sqrt {-a^2+b^2}-2 i a e^{i (c+d x)}} \, dx,x,x^n\right )}{a \sqrt {-a^2+b^2} e n}-\frac {\left (4 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b+2 \sqrt {-a^2+b^2}-2 i a e^{i (c+d x)}} \, dx,x,x^n\right )}{a \sqrt {-a^2+b^2} e n}+\frac {\left (2 i b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x}{i b-\sqrt {a^2-b^2}+a e^{i (c+d x)}} \, dx,x,x^n\right )}{a \left (a^2-b^2\right ) d e n}+\frac {\left (2 i b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x}{i b+\sqrt {a^2-b^2}+a e^{i (c+d x)}} \, dx,x,x^n\right )}{a \left (a^2-b^2\right ) d e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}-\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}+\frac {\left (2 i b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b-2 \sqrt {-a^2+b^2}-2 i a e^{i (c+d x)}} \, dx,x,x^n\right )}{a \left (a^2-b^2\right ) \sqrt {-a^2+b^2} e n}-\frac {\left (2 i b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b+2 \sqrt {-a^2+b^2}-2 i a e^{i (c+d x)}} \, dx,x,x^n\right )}{a \left (a^2-b^2\right ) \sqrt {-a^2+b^2} e n}-\frac {\left (2 b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \log \left (1+\frac {a e^{i (c+d x)}}{i b-\sqrt {a^2-b^2}}\right ) \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {\left (2 b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \log \left (1+\frac {a e^{i (c+d x)}}{i b+\sqrt {a^2-b^2}}\right ) \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {\left (4 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int x \log \left (1-\frac {2 i a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {\left (4 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int x \log \left (1-\frac {2 i a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \sqrt {-a^2+b^2} d e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}+\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}-\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}-\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}+\frac {\left (2 i b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {a x}{i b-\sqrt {a^2-b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}+\frac {\left (2 i b^2 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {a x}{i b+\sqrt {a^2-b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {\left (4 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \text {Li}_2\left (\frac {2 i a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}+\frac {\left (4 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \text {Li}_2\left (\frac {2 i a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}-\frac {\left (2 i b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int x \log \left (1-\frac {2 i a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) \sqrt {-a^2+b^2} d e n}+\frac {\left (2 i b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int x \log \left (1-\frac {2 i a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) \sqrt {-a^2+b^2} d e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}+\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}-\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}+\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}+\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}-\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}+\frac {\left (4 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i a x}{b-\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}-\frac {\left (4 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i a x}{b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}-\frac {\left (2 b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \text {Li}_2\left (\frac {2 i a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) \sqrt {-a^2+b^2} d^2 e n}+\frac {\left (2 b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \text {Li}_2\left (\frac {2 i a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a^2 \left (a^2-b^2\right ) \sqrt {-a^2+b^2} d^2 e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}+\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}-\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}+\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}+\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}-\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}+\frac {4 i b x^{-3 n} (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}-\frac {4 i b x^{-3 n} (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}+\frac {\left (2 i b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i a x}{b-\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a^2 \left (a^2-b^2\right ) \sqrt {-a^2+b^2} d^3 e n}-\frac {\left (2 i b^3 x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i a x}{b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a^2 \left (a^2-b^2\right ) \sqrt {-a^2+b^2} d^3 e n}\\ &=\frac {(e x)^{3 n}}{3 a^2 e n}-\frac {i b^2 x^{-n} (e x)^{3 n}}{a^2 \left (a^2-b^2\right ) d e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}+\frac {2 b^2 x^{-2 n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^2 e n}-\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}+\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}+\frac {i b^3 x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d e n}-\frac {2 i b x^{-n} (e x)^{3 n} \log \left (1-\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (c+d x^n\right )}}{i b-\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 i b^2 x^{-3 n} (e x)^{3 n} \text {Li}_2\left (-\frac {a e^{i \left (c+d x^n\right )}}{i b+\sqrt {a^2-b^2}}\right )}{a^2 \left (a^2-b^2\right ) d^3 e n}-\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}+\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}+\frac {2 b^3 x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^2 e n}-\frac {4 b x^{-2 n} (e x)^{3 n} \text {Li}_2\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^2 e n}-\frac {2 i b^3 x^{-3 n} (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^3 e n}+\frac {4 i b x^{-3 n} (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}+\frac {2 i b^3 x^{-3 n} (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \left (-a^2+b^2\right )^{3/2} d^3 e n}-\frac {4 i b x^{-3 n} (e x)^{3 n} \text {Li}_3\left (\frac {i a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a^2 \sqrt {-a^2+b^2} d^3 e n}-\frac {b^2 x^{-n} (e x)^{3 n} \cos \left (c+d x^n\right )}{a \left (a^2-b^2\right ) d e n \left (b+a \sin \left (c+d x^n\right )\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 9.95, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(e x)^{-1+3 n}}{\left (a+b \csc \left (c+d x^n\right )\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.11, size = 0, normalized size = 0.00 \[\int \frac {\left (e x \right )^{-1+3 n}}{\left (a +b \csc \left (c +d \,x^{n}\right )\right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 3768 vs. \(2 (1291) = 2582\).
time = 5.20, size = 3768, normalized size = 2.66 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e x\right )^{3 n - 1}}{\left (a + b \csc {\left (c + d x^{n} \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (e\,x\right )}^{3\,n-1}}{{\left (a+\frac {b}{\sin \left (c+d\,x^n\right )}\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________